package com.anlu.base;

import lombok.Setter;

import java.util.Locale;

@Setter
public class BusinessLookup {
    private NetflixService netflixService;

    private YouTubeService youTubeService;


    public VideoStreamingService getBusinessService(String movie) {
        if (movie.toLowerCase(Locale.ROOT).contains("die hard")) {

            return netflixService;
        } else {
            return youTubeService;
        }
    }
}
